package com.moore.service;

import com.moore.bean.Apartment;
import com.moore.bean.ApartmentForm;
import com.moore.dto.ResponseData;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ApartmentService {
    ResponseData confirmAddApartment(ApartmentForm apartmentForm);

    ResponseData addApartment(ApartmentForm apartmentForm);

    ResponseData addAnApartment(Apartment apartment);

    ResponseData getBuildings(Apartment apartment);

    ResponseData getApartments(Apartment apartment, HttpServletRequest request);

    ResponseData updateApartmentStatus(String status, long id);

    ResponseData batchPublishApartments(List<Apartment> apartmentList);

    ResponseData getApartmentsLayout(String areaName, String communityName);

    ResponseData getApartmentsArea(String areaName, String communityName);

    ResponseData getApartmentsRent(String areaName, String communityName);

    ResponseData deleteApartment(List<Apartment> apartments);

    ResponseData reclaimApartment(List<Apartment> apartments);
}
